using System;
using digit.Core;
using System.Data;

namespace SMS.MediaManager
{
	public class TransInfoInfo
	{
		#region CONSTRUCTORS
		public TransInfoInfo()
		{
		
			this.m_transID = Util.NULL_LONG;
			this.m_transDate = Util.NULL_DATETIME;
			this.m_userID = Util.NULL_STRING;
			this.m_dataID = Util.NULL_LONG;
            this.m_dataName = Util.NULL_STRING;
			this.m_dataType = Util.NULL_STRING;
            this.m_sizeId = Util.NULL_INT;
		}
		public TransInfoInfo( long transID,  DateTime transDate,  string userID,  long dataID, string dataName, string dataType,  int sizeId)
		{
		
			this.m_transID = transID;
			this.m_transDate = transDate;
			this.m_userID = userID;
			this.m_dataID = dataID;
            this.m_dataName = dataName;
			this.m_dataType = dataType;
            this.m_sizeId = sizeId;
		}
		public TransInfoInfo( DataRow dRow)
		{
		
			this.m_transID = (long) Util.ReplaceDBNullTo(dRow["transID"], Util.NULL_LONG);
			this.m_transDate = (DateTime) Util.ReplaceDBNullTo(dRow["transDate"], Util.NULL_DATETIME);
			this.m_userID = Util.ReplaceDBNullTo(dRow["userID"], Util.NULL_STRING).ToString();
			this.m_dataID = (long) Util.ReplaceDBNullTo(dRow["dataID"], Util.NULL_LONG);
            this.m_dataName = Util.ReplaceDBNullTo(dRow["dataName"], Util.NULL_STRING).ToString();
			this.m_dataType = Util.ReplaceDBNullTo(dRow["dataType"], Util.NULL_STRING).ToString();
            this.m_sizeId = (int)Util.ReplaceDBNullTo(dRow["sizeId"], Util.NULL_INT);
		}
		#endregion
		
		#region ATTRIBUTES
		private long m_transID;
		private DateTime m_transDate;
		private string m_userID;
		private long m_dataID;
        private string m_dataName;
		private string m_dataType;
        private int m_sizeId;
		#endregion
		
		#region PROPERTIES
		public long TransID
		{
			get
			{
				return this.m_transID;
			}
			set
			{
				this.m_transID = value;
			}
		}
		
		public DateTime TransDate
		{
			get
			{
				return this.m_transDate;
			}
			set
			{
				this.m_transDate = value;
			}
		}
		
		public string UserID
		{
			get
			{
				return this.m_userID;
			}
			set
			{
				this.m_userID = value;
			}
		}
		
		public long DataID
		{
			get
			{
				return this.m_dataID;
			}
			set
			{
				this.m_dataID = value;
			}
		}

        public string DataName
        {
            get
            {
                return this.m_dataName;
            }
            set
            {
                this.m_dataName = value;
            }
        }
		
		public string DataType
		{
			get
			{
				return this.m_dataType;
			}
			set
			{
				this.m_dataType = value;
			}
		}
		
		public int SizeID
		{
			get
			{
				return this.m_sizeId;
			}
			set
			{
                this.m_sizeId = value;
			}
		}
		
		#endregion
		
	}
}